<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 输出1-1000内能同时被7和11整除的数,并求出一共有多少个这样的数
        var index = 0
        for(var i = 1; i <=1000; i++) {
            if(i % 7 == 0 && i % 11 == 0) {
                index++
                console.log(i);
            }
        }
        console.log(index);
    </script>
</head>
<body>
    
</body>
</html>